// createWebHashHistory 是hash模式就是访问链接带有#
// createWebHistory  是history模式
import { createRouter, createWebHashHistory, createWebHistory } from "vue-router"

const routes = [
    {
        path: "/",
        name: "Login",
        meta: {
            title: "登录",
        },
        component: () => import("../views/Login.vue"),
    },
    {
        path: "/Home",
        name: "Home",
        meta: {
            title: "花数云",
        },
        component: () => import("../views/Home.vue"),
    },
    {
        path: "/Setup/ManageRole",
        name: "ManageRole",
        meta: {
            title: "角色管理",
        },
        component: () => import("../views/Setup/ManageRole.vue"),
    },
    {
        path: "/Setup/ManagementUser",
        name: "ManagementUser",
        meta: {
            title: "管理员列表",
        },
        component: () => import("../views/Setup/ManagementUser.vue"),
    },
    {
        path: "/Setup/ManageRoleAdd",
        name: "ManageRoleAdd",
        meta: {
            title: "添加角色",
            showBread: true,
        },
        component: () => import("../views/Setup/ManageRoleAdd.vue"),
    },
    {
        path: "/Setup/ManageRoleEdit",
        name: "ManageRoleEdit",
        meta: {
            title: "编辑角色",
            showBread: true,
        },
        component: () => import("../views/Setup/ManageRoleEdit.vue"),
    },
    {
        path: "/Shop/ShopDeco",
        // name: "ShopDeco",
        meta: {
            title: "页面管理",
        },
        component: () => import("../views/Shop/ShopDeco.vue"),
        children: [
            {
                path: "/Shop/Deco/DecoHome",
                name: "DecoHome",
                meta: {
                    title: "页面管理",
                },
                component: () => import("../views/Shop/Deco/DecoHome.vue"),
            },
            {
                path: "/Shop/Deco/DecoCenter",
                name: "DecoCenter",
                meta: {
                    title: "个人中心",
                },
                component: () => import("../views/Shop/Deco/DecoCenter.vue"),
            },
            {
                path: "/Shop/Deco/DecoCateStyle",
                name: "DecoCateStyle",
                meta: {
                    title: "分类风格",
                },
                component: () => import("../views/Shop/Deco/DecoCateStyle.vue"),
            },
            {
                path: "/Shop/Deco/DecoShopNav",
                name: "DecoShopNav",
                meta: {
                    title: "导航管理",
                },
                component: () => import("../views/Shop/Deco/DecoShopNav.vue"),
            },
            {
                path: "/Shop/Deco/DecoSuspen",
                name: "DecoSuspen",
                meta: {
                    title: "悬浮窗管理",
                },
                component: () => import("../views/Shop/Deco/DecoSuspen.vue"),
            },
            {
                path: "/Shop/Deco/DecoHotTerms",
                name: "DecoHotTerms",
                meta: {
                    title: "搜索设置",
                },
                component: () => import("../views/Shop/Deco/DecoHotTerms.vue"),
            },
            {
                path: "/Shop/Deco/DecoShopStyle",
                name: "DecoShopStyle",
                meta: {
                    title: "风格管理",
                },
                component: () => import("../views/Shop/Deco/DecoShopStyle.vue"),
            },
            {
                path: "/Shop/ShopPopup",
                name: "ShopPopup",
                meta: {
                    title: "弹窗管理",
                },
                component: () => import("../views/Shop/Deco/ShopPopup.vue"),
            },
        ],
    },
    {
        path: "/Shop/Card/AgentCard",
        name: "AgentCard",
        meta: {
            title: "代理商名片",
        },
        component: () => import("../views/Shop/Card/AgentCard.vue"),
    },
    {
        path: "/Shop/ShortMessage/SendRecord",
        name: "SendRecord",
        meta: {
            title: "发送记录",
        },
        component: () => import("../views/Shop/ShortMessage/SendRecord.vue"),
    },
    {
        path: "/Shop/ShortMessage/RechargeRecord",
        name: "/ShortMessage/RechargeRecord",
        meta: {
            title: "充值记录",
        },
        component: () => import("../views/Shop/ShortMessage/RechargeRecord.vue"),
    },
    {
        path: "/Picture/PictureClassify",
        name: "PictureClassify",
        meta: {
            title: "商品图分类",
        },
        component: () => import("../views/Picture/PictureClassify.vue"),
    },
    {
        path: "/Picture/PictureList",
        name: "PictureList",
        meta: {
            title: "商品图列表",
        },
        component: () => import("../views/Picture/PictureList.vue"),
    },
    {
        path: "/Goods/GoodsAttr",
        name: "GoodsAttr",
        meta: {
            title: "商品属性",
        },
        component: () => import("../views/Goods/GoodsAttr.vue"),
    },
    {
        path: "/Goods/GoodsAttrUpdate",
        name: "GoodsAttrUpdate",
        meta: {
            title: "商品属性更改",
            showBread: true,
        },
        component: () => import("../views/Goods/GoodsAttrUpdate.vue"),
    },
    {
        path: "/Goods/GoodsClass",
        name: "GoodsClass",
        meta: {
            title: "商品分类",
        },
        component: () => import("../views/Goods/GoodsClass.vue"),
    },
    {
        path: "/Goods/GoodsColors",
        name: "GoodsColors",
        meta: {
            title: "颜色管理",
        },
        component: () => import("../views/Goods/GoodsColors.vue"),
    },
    {
        path: "/Goods/GoodsPublic",
        name: "GoodsPublic",
        meta: {
            title: "公共商品",
        },
        component: () => import("../views/Goods/GoodsPublic.vue"),
    },
    {
        path: "/Goods/GoodsApply",
        name: "GoodsApply",
        meta: {
            title: "商品活动申请",
        },
        component: () => import("../views/Goods/GoodsApply.vue"),
    },
    {
        path: "/Goods/GoodsPublicDetail",
        name: "GoodsPublicDetail",
        meta: {
            title: "商品详情",
            showBread: true,
        },
        component: () => import("../views/Goods/GoodsPublicDetail.vue"),
    },
    {
        path: "/Goods/GoodsList",
        name: "GoodsList",
        meta: {
            title: "出售中商品",
        },
        component: () => import("../views/Goods/GoodsList.vue"),
    },
    {
        path: "/Goods/GoodsListAdd",
        name: "GoodsListAdd",
        meta: {
            title: "添加商品",
            showBread: true,
        },
        component: () => import("../views/Goods/GoodsListAdd.vue"),
    },
    {
        path: "/Goods/GoodsListEdit",
        name: "GoodsListEdit",
        meta: {
            title: "编辑商品",
            showBread: true,
        },
        component: () => import("../views/Goods/GoodsListEdit.vue"),
    },
    {
        path: "/Goods/GoodsGrade",
        name: "GoodsGrade",
        meta: {
            title: "商品等级",
        },
        component: () => import("../views/Goods/GoodsGrade.vue"),
    },
    {
        path: "/Goods/GoodsTag",
        name: "GoodsTag",
        meta: {
            title: "商品标签",
        },
        component: () => import("../views/Goods/GoodsTag.vue"),
    },
    {
        path: "/Goods/GoodsPublicUpdate",
        name: "GoodsPublicUpdate",
        meta: {
            title: "添加/编辑商品",
            showBread: true,
        },
        component: () => import("../views/Goods/GoodsPublicUpdate.vue"),
    },
    {
        path: "/Goods/GoodsListDetail",
        name: "GoodsListDetail",
        meta: {
            title: "商品详情",
            showBread: true,
        },
        component: () => import("../views/Goods/GoodsListDetail.vue"),
    },
    {
        path: "/Goods/UpAndDown",
        name: "UpAndDown",
        meta: {
            title: "涨跌设置",
        },
        component: () => import("../views/Goods/UpAndDown.vue"),
    },
    {
        path: "/Order/AfterSales",
        name: "AfterSales",
        meta: {
            title: "售后订单",
        },
        component: () => import("../views/Order/AfterSales.vue"),
    },
    {
        path: "/Order/AfterReason",
        name: "AfterReason",
        meta: {
            title: "退换货理由",
        },
        component: () => import("../views/Order/AfterReason.vue"),
    },
    {
        path: "/Order/AfterSalesDetail",
        name: "AfterSalesDetail",
        meta: {
            title: "售后详情",
            showBread: true,
        },
        component: () => import("../views/Order/AfterSalesDetail.vue"),
    },
    {
        path: "/Order/OrderEval",
        name: "OrderEval",
        meta: {
            title: "订单评价",
        },
        component: () => import("../views/Order/OrderEval.vue"),
    },
    {
        path: "/Order/OrderList",
        name: "OrderList",
        meta: {
            title: "订单列表",
        },
        component: () => import("../views/Order/OrderList.vue"),
    },
    {
        path: "/Order/OrderRefund",
        name: "OrderRefund",
        meta: {
            title: "退货订单",
        },
        component: () => import("../views/Order/OrderRefund.vue"),
    },
    {
        path: "/Order/OrderDetail",
        name: "OrderDetail",
        meta: {
            title: "订单详情",
            showBread: true,
        },
        component: () => import("../views/Order/OrderDetail.vue"),
    },
    {
        path: "/Supplier/AuthorizeSearch",
        name: "AuthorizeSearch",
        meta: {
            title: "授权查询",
        },
        component: () => import("../views/Supplier/AuthorizeSearch.vue"),
    },
    {
        path: "/Supplier/JoinList",
        name: "JoinList",
        meta: {
            title: "供应商审核",
        },
        component: () => import("../views/Supplier/JoinList.vue"),
    },
    {
        path: "/Supplier/LabelManaget",
        name: "LabelManaget",
        meta: {
            title: "供应商标签",
        },
        component: () => import("../views/Supplier/LabelManaget.vue"),
    },
    {
        path: "/Supplier/SupplierList",
        name: "SupplierList",
        meta: {
            title: "供应商列表",
        },
        component: () => import("../views/Supplier/SupplierList.vue"),
    },
    {
        path: "/Supplier/SupplierListAdd",
        name: "SupplierListAdd",
        meta: {
            title: "添加供应商",
            showBread: true,
        },
        component: () => import("../views/Supplier/SupplierListAdd.vue"),
    },
    {
        path: "/Supplier/SupplierListEdit",
        name: "SupplierListEdit",
        meta: {
            title: "编辑供应商",
            showBread: true,
        },
        component: () => import("../views/Supplier/SupplierListEdit.vue"),
    },
    {
        path: "/Supplier/SupplierListGrant",
        name: "SupplierListGrant",
        meta: {
            title: "授权商品",
            showBread: true,
        },
        component: () => import("../views/Supplier/SupplierListGrant.vue"),
    },
    {
        path: "/Supplier/SupplierLog",
        name: "SupplierLog",
        meta: {
            title: "供应商日志",
        },
        component: () => import("../views/Supplier/SupplierLog.vue"),
    },
    {
        path: "/Supplier/WithdrawalLog",
        name: "WithdrawalLog",
        meta: {
            title: "提现日志",
        },
        component: () => import("../views/Supplier/WithdrawalLog.vue"),
    },
    {
        path: "/Supplier/ProductCount",
        name: "ProductCount",
        meta: {
            title: "商品统计",
        },
        component: () => import("../views/Supplier/ProductCount.vue"),
    },
    {
        path: "/Supplier/SupplierNotice",
        name: "SupplierNotice",
        meta: {
            title: "供应商公告",
        },
        component: () => import("../views/Supplier/SupplierNotice.vue"),
    },
    {
        path: "/Supplier/SupplierFinance",
        name: "SupplierFinance",
        meta: {
            title: "财务报表",
            showBread: true,
        },
        component: () => import("../views/Supplier/SupplierFinance.vue"),
    },
    {
        path: "/Member/MemberList",
        name: "MemberList",
        meta: {
            title: "会员列表",
        },
        component: () => import("../views/Member/MemberList.vue"),
    },
    {
        path: "/Member/MemberLevel",
        name: "MemberLevel",
        meta: {
            title: "会员等级",
        },
        component: () => import("../views/Member/MemberLevel.vue"),
    },
    {
        path: "/Member/MemberImport",
        name: "MemberImport",
        meta: {
            title: "会员导出",
        },
        component: () => import("../views/Member/MemberImport.vue"),
    },
    {
        path: "/Member/MemberModify",
        name: "MemberModify",
        meta: {
            title: "批量修改会员",
        },
        component: () => import("../views/Member/MemberModify.vue"),
    },
    {
        path: "/Member/MemberCreateOrder",
        name: "MemberCreateOrder",
        meta: {
            title: "创建订单",
            showBread: true,
        },
        component: () => import("../views/Member/MemberCreateOrder.vue"),
    },
    {
        path: "/Member/MemberListSub",
        name: "MemberListSub",
        meta: {
            title: "查看下级",
            showBread: true,
        },
        component: () => import("../views/Member/MemberListSub.vue"),
    },
    {
        path: "/Member/MemberDetail",
        name: "MemberDetail",
        meta: {
            title: "会员详情",
            showBread: true,
        },
        component: () => import("../views/Member/MemberDetail.vue"),
    },
    {
        path: "/Member/Feedback",
        name: "Feedback",
        meta: {
            title: "意见反馈",
        },
        component: () => import("../views/Member/Feedback.vue"),
    },
    {
        path: "/Member/MemberTag",
        name: "MemberTag",
        meta: {
            title: "会员标签",
        },
        component: () => import("../views/Member/MemberTag.vue"),
    },
    {
        path: "/Agent/AgentList",
        name: "AgentList",
        meta: {
            title: "代理商列表",
        },
        component: () => import("../views/Agent/AgentList.vue"),
    },
    {
        path: "/Agent/AgentExam",
        name: "AgentExam",
        meta: {
            title: "代理商审核",
        },
        component: () => import("../views/Agent/AgentExam.vue"),
    },
    {
        path: "/Agent/AgentSetup",
        name: "AgentSetup",
        meta: {
            title: "代理商设置",
        },
        component: () => import("../views/Agent/AgentSetup.vue"),
    },
    {
        path: "/Agent/AgentSale",
        name: "AgentSale",
        meta: {
            title: "代理商销售奖",
        },
        component: () => import("../views/Agent/AgentSale.vue"),
    },
    {
        path: "/Agent/SetupAgent",
        name: "SetupAgent",
        meta: {
            title: "设置代理商",
        },
        component: () => import("../views/Agent/SetupAgent.vue"),
    },
    {
        path: "/Agent/AgentFinanceChart",
        name: "AgentFinanceChart",
        meta: {
            title: "财务报表",
            showBread: true,
        },
        component: () => import("../views/Agent/AgentFinanceChart.vue"),
    },
    {
        path: "/Agent/AgentMember",
        name: "AgentMember",
        meta: {
            title: "推荐会员",
            showBread: true,
        },
        component: () => import("../views/Agent/AgentMember.vue"),
    },
    {
        path: "/News/NewsClass",
        name: "NewsClass",
        meta: {
            title: "文章分类",
        },
        component: () => import("../views/News/NewsClass.vue"),
    },
    {
        path: "/News/NewsList",
        name: "NewsList",
        meta: {
            title: "文章列表",
        },
        component: () => import("../views/News/NewsList.vue"),
    },
    {
        path: "/News/NewsAdd",
        name: "NewsAdd",
        meta: {
            title: "文章添加",
            showBread: true,
        },
        component: () => import("../views/News/NewsAdd.vue"),
    },
    {
        path: "/News/NewsEdit",
        name: "NewsEdit",
        meta: {
            title: "文章编辑",
            showBread: true,
        },
        component: () => import("../views/News/NewsEdit.vue"),
    },
    {
        path: "/Notice/NoticeList",
        name: "Notice",
        meta: {
            title: "消息列表",
            showBread: true,
        },
        component: () => import("../views/Notice/NoticeList.vue"),
    },
    {
        path: "/Notice/NoticeDetail",
        name: "NoticeDetail",
        meta: {
            title: "查看详情",
            showBread: true,
        },
        component: () => import("../views/Notice/NoticeDetail.vue"),
    },
    {
        path: "/Help",
        name: "Help",
        meta: {
            title: "帮助中心",
            showBread: true,
        },
        component: () => import("../views/Help.vue"),
    },
    {
        path: "/HelpDetail",
        name: "HelpDetail",
        meta: {
            title: "帮助中心详情",
            showBread: true,
        },
        component: () => import("../views/HelpDetail.vue"),
    },
    {
        path: "/ChangePass",
        name: "ChangePass",
        meta: {
            title: "修改密码",
        },
        component: () => import("../views/ChangePass.vue"),
    },
    {
        path: "/Setup/AppletManage",
        name: "AppletManage",
        meta: {
            title: "授权管理",
        },
        component: () => import("../views/Setup/AppletManage.vue"),
    },
    {
        path: "/Setup/AppletManageUser",
        name: "AppletManageUser",
        meta: {
            title: "小程序信息",
            showBread: true,
        },
        component: () => import("../views/Setup/AppletManageUser.vue"),
    },
    {
        path: "/Setup/AppletManageStaff",
        name: "AppletManageStaff",
        meta: {
            title: "小程序信息",
            showBread: true,
        },
        component: () => import("../views/Setup/AppletManageStaff.vue"),
    },
    {
        path: "/Setup/AppletManageSupp",
        name: "AppletManageSupp",
        meta: {
            title: "小程序信息",
            showBread: true,
        },
        component: () => import("../views/Setup/AppletManageSupp.vue"),
    },
    {
        path: "/Setup/AppletPay",
        name: "AppletPay",
        meta: {
            title: "支付配置",
        },
        component: () => import("../views/Setup/AppletPay.vue"),
    },
    {
        path: "/Setup/AppletWxPay",
        name: "AppletWxPay",
        meta: {
            title: "微信支付配置",
            showBread: true,
        },
        component: () => import("../views/Setup/AppletWxPay.vue"),
    },
    {
        path: "/Setup/AppletAllinPay",
        name: "AppletAllinPay",
        meta: {
            title: "通联支付配置",
            showBread: true,
        },
        component: () => import("../views/Setup/AppletAllinPay.vue"),
    },
    {
        path: "/Setup/PaymentConfig",
        name: "PaymentConfig",
        meta: {
            title: "付款配置",
        },
        component: () => import("../views/Setup/PaymentConfig.vue"),
    },
    {
        path: "/Setup/AppletBaseInfo",
        name: "AppletBaseInfo",
        meta: {
            title: "基础信息",
        },
        component: () => import("../views/Setup/AppletBaseInfo.vue"),
    },
    {
        path: "/Setup/ShopInfo",
        name: "ShopInfo",
        meta: {
            title: "店铺信息",
        },
        component: () => import("../views/Setup/ShopInfo.vue"),
    },
    {
        path: "/Setup/OutboundProcess",
        name: "OutboundProcess",
        meta: {
            title: "入库流程",
        },
        component: () => import("../views/Setup/OutboundProcess.vue"),
    },
    {
        path: "/Setup/Distribution",
        name: "Distribution",
        meta: {
            title: "配送管理",
        },
        component: () => import("../views/Setup/Distribution.vue"),
    },
    {
        path: "/Setup/LogisticsCompany",
        name: "LogisticsCompany",
        meta: {
            title: "物流公司",
            showBread: true,
        },
        component: () => import("../views/Setup/LogisticsCompany.vue"),
    },
    {
        path: "/Setup/LogisticsGroup",
        name: "LogisticsGroup",
        meta: {
            title: "物流分组",
        },
        component: () => import("../views/Setup/LogisticsGroup.vue"),
    },
    {
        path: "/Setup/BaleConfig",
        name: "BaleConfig",
        meta: {
            title: "打包配置",
        },
        component: () => import("../views/Setup/BaleConfig.vue"),
    },
    {
        path: "/Setup/LogisticsList",
        name: "LogisticsList",
        meta: {
            title: "快递方式",
            showBread: true,
        },
        component: () => import("../views/Setup/LogisticsList.vue"),
    },
    {
        path: "/Setup/ConfigArea",
        name: "ConfigArea",
        meta: {
            title: "配置区域",
            showBread: true,
        },
        component: () => import("../views/Setup/ConfigArea.vue"),
    },
    {
        path: "/Setup/TransactionSetup",
        name: "TransactionSetup",
        meta: {
            title: "交易设置",
        },
        component: () => import("../views/Setup/TransactionSetup.vue"),
    },
    {
        path: "/Setup/CustomerSetup",
        name: "CustomerSetup",
        meta: {
            title: "客服设置",
        },
        component: () => import("../views/Setup/CustomerSetup.vue"),
    },
    {
        path: "/Setup/ShelveManage",
        name: "ShelveManage",
        meta: {
            title: "货架号规则",
        },
        component: () => import("../views/Setup/ShelveManage.vue"),
    },
    {
        path: "/Setup/ShelveCode",
        name: "ShelveCode",
        meta: {
            title: "货架二维码",
        },
        component: () => import("../views/Setup/ShelveCode.vue"),
    },
    {
        path: "/Setup/SpecialNeeds",
        name: "SpecialNeeds",
        meta: {
            title: "特殊需求",
        },
        component: () => import("../views/Setup/SpecialNeeds.vue"),
    },
    {
        path: "/Setup/MessageSetup",
        name: "MessageSetup",
        meta: {
            title: "消息设置",
        },
        component: () => import("../views/Setup/MessageSetup.vue"),
    },
    {
        path: "/Setup/PickUpGoods",
        name: "PickUpGoods",
        meta: {
            title: "站点管理",
        },
        component: () => import("../views/Setup/PickUpGoods.vue"),
    },
    {
        path: "/Setup/OperationLog",
        name: "OperationLog",
        meta: {
            title: "操作日志",
        },
        component: () => import("../views/Setup/OperationLog.vue"),
    },
    {
        path: "/Setup/PrinterList",
        name: "PrinterList",
        meta: {
            title: "打印机列表",
        },
        component: () => import("../views/Setup/PrinterList.vue"),
    },
    {
        path: "/Finance/AgentCashOut",
        name: "AgentCashOut",
        meta: {
            title: "代理商提现",
        },
        component: () => import("../views/Finance/AgentCashOut.vue"),
    },
    {
        path: "/Finance/AgentRecord",
        name: "AgentRecord",
        meta: {
            title: "代理商提现记录",
        },
        component: () => import("../views/Finance/AgentRecord.vue"),
    },
    {
        path: "/Finance/BalanceRecord",
        name: "BalanceRecord",
        meta: {
            title: "余额提现记录",
        },
        component: () => import("../views/Finance/BalanceRecord.vue"),
    },
    {
        path: "/Finance/CapitalLog",
        name: "CapitalLog",
        meta: {
            title: "会员日志",
        },
        component: () => import("../views/Finance/CapitalLog.vue"),
    },
    {
        path: "/Finance/CollectionDetail",
        name: "CollectionDetail",
        meta: {
            title: "应收款明细",
        },
        component: () => import("../views/Finance/CollectionDetail.vue"),
    },
    {
        path: "/Finance/MemberBill",
        name: "MemberBill",
        meta: {
            title: "会员对账单明细",
        },
        component: () => import("../views/Finance/MemberBill.vue"),
    },
    {
        path: "/Finance/PaymentDetail",
        name: "PaymentDetail",
        meta: {
            title: "微信转账记录",
        },
        component: () => import("../views/Finance/PaymentDetail.vue"),
    },
    {
        path: "/Finance/RefundDetail",
        name: "RefundDetail",
        meta: {
            title: "微信退款记录",
        },
        component: () => import("../views/Finance/RefundDetail.vue"),
    },
    {
        path: "/Finance/MemberCashOut",
        name: "MemberCashOut",
        meta: {
            title: "会员提现",
        },
        component: () => import("../views/Finance/MemberCashOut.vue"),
    },
    {
        path: "/Finance/RechargeRecord",
        name: "RechargeRecord",
        meta: {
            title: "余额充值记录",
        },
        component: () => import("../views/Finance/RechargeRecord.vue"),
    },
    {
        path: "/Finance/RejectRecord",
        name: "RejectRecord",
        meta: {
            title: "驳回记录",
        },
        component: () => import("../views/Finance/RejectRecord.vue"),
    },
    {
        path: "/Finance/SupplierCashOut",
        name: "SupplierCashOut",
        meta: {
            title: "供应商提现",
        },
        component: () => import("../views/Finance/SupplierCashOut.vue"),
    },
    {
        path: "/Finance/SupplierDeposit",
        name: "SupplierDeposit",
        meta: {
            title: "供应商保证金",
        },
        component: () => import("../views/Finance/SupplierDeposit.vue"),
    },
    {
        path: "/Finance/SupplierFinanceCount",
        name: "SupplierFinanceCount",
        meta: {
            title: "供应商财务",
        },
        component: () => import("../views/Finance/SupplierFinanceCount.vue"),
    },
    {
        path: "/Finance/SupplierRecord",
        name: "SupplierRecord",
        meta: {
            title: "供应商提现记录",
        },
        component: () => import("../views/Finance/SupplierRecord.vue"),
    },
    {
        path: "/Marketing/CouponGive",
        name: "CouponGive",
        meta: {
            title: "注册送优惠券",
        },
        component: () => import("../views/Marketing/CouponGive.vue"),
    },
    {
        path: "/Marketing/CouponList",
        name: "CouponList",
        meta: {
            title: "优惠券列表",
        },
        component: () => import("../views/Marketing/CouponList.vue"),
    },
    {
        path: "/Marketing/CouponGiveUpdate",
        name: "CouponGiveUpdate",
        meta: {
            title: "优惠券编辑",
            showBread: true,
        },
        component: () => import("../views/Marketing/CouponGiveUpdate.vue"),
    },
    {
        path: "/Marketing/FirstReduce",
        name: "FirstReduce",
        meta: {
            title: "首单立减",
        },
        component: () => import("../views/Marketing/FirstReduce.vue"),
    },
    {
        path: "/Marketing/FullDiscount",
        name: "FullDiscount",
        meta: {
            title: "满减优惠",
        },
        component: () => import("../views/Marketing/FullDiscount.vue"),
    },
    {
        path: "/Marketing/MassSMS",
        name: "MassSMS",
        meta: {
            title: "短信群发",
        },
        component: () => import("../views/Marketing/MassSMS.vue"),
    },
    {
        path: "/Marketing/PayGift",
        name: "PayGift",
        meta: {
            title: "支付有礼",
        },
        component: () => import("../views/Marketing/PayGift.vue"),
    },
    {
        path: "/Marketing/Recharge",
        name: "Recharge",
        meta: {
            title: "充值优惠",
        },
        component: () => import("../views/Marketing/Recharge.vue"),
    },
    {
        path: "/Marketing/RechargeSMS",
        name: "RechargeSMS",
        meta: {
            title: "短信充值",
            showBread: true,
        },
        component: () => import("../views/Marketing/RechargeSMS.vue"),
    },
    {
        path: "/Marketing/Seckill",
        name: "Seckill",
        meta: {
            title: "秒杀",
        },
        component: () => import("../views/Marketing/Seckill.vue"),
    },
    {
        path: "/Marketing/SharingGift",
        name: "SharingGift",
        meta: {
            title: "分享有礼",
        },
        component: () => import("../views/Marketing/SharingGift.vue"),
    },
    {
        path: "/Data/FlowOverview",
        name: "FlowOverview",
        meta: {
            title: "流量概况",
        },
        component: () => import("../views/Data/FlowOverview.vue"),
    },
    {
        path: "/Data/GoodsAnalytics",
        name: "GoodsAnalytics",
        meta: {
            title: "商品分析",
        },
        component: () => import("../views/Data/GoodsAnalytics.vue"),
    },
    {
        path: "/Data/TradingAnalytics",
        name: "TradingAnalytics",
        meta: {
            title: "交易分析",
        },
        component: () => import("../views/Data/TradingAnalytics.vue"),
    },
    {
        path: "/Data/RefundAnalytics",
        name: "RefundAnalytics",
        meta: {
            title: "退款分析",
        },
        component: () => import("../views/Data/RefundAnalytics.vue"),
    },
    {
        path: "/Data/SupplierAnalytics",
        name: "SupplierAnalytics",
        meta: {
            title: "供应商分析",
        },
        component: () => import("../views/Data/SupplierAnalytics.vue"),
    },
    {
        path: "/Data/TradingOverview",
        name: "TradingOverview",
        meta: {
            title: "交易概况",
        },
        component: () => import("../views/Data/TradingOverview.vue"),
    },
    {
        path: "/Data/UserAnalytics",
        name: "UserAnalytics",
        meta: {
            title: "用户分析",
        },
        component: () => import("../views/Data/UserAnalytics.vue"),
    },
    {
        path: "/StoreManage/DeliverCount",
        name: "DeliverCount",
        meta: {
            title: "交货记录",
        },
        component: () => import("../views/StoreManage/DeliverCount.vue"),
    },
    {
        path: "/StoreManage/DeliverList",
        name: "DeliverList",
        meta: {
            title: "交货列表",
        },
        component: () => import("../views/StoreManage/DeliverList.vue"),
    },
    {
        path: "/StoreManage/ExamCount",
        name: "ExamCount",
        meta: {
            title: "质检记录",
        },
        component: () => import("../views/StoreManage/ExamCount.vue"),
    },
    {
        path: "/StoreManage/ExamList",
        name: "ExamList",
        meta: {
            title: "质检列表",
        },
        component: () => import("../views/StoreManage/ExamList.vue"),
    },
    {
        path: "/StoreManage/OrderPrintGoods",
        name: "OrderPrintGoods",
        meta: {
            title: "导单配货",
        },
        component: () => import("../views/StoreManage/OrderPrintGoods.vue"),
    },
    {
        path: "/StoreManage/PurchaseOrder",
        name: "PurchaseOrder",
        meta: {
            title: "导出采购单",
        },
        component: () => import("../views/StoreManage/PurchaseOrder.vue"),
    },
    {
        path: "/StoreManage/PackCount",
        name: "PackCount",
        meta: {
            title: "打包记录",
        },
        component: () => import("../views/StoreManage/PackCount.vue"),
    },
    {
        path: "/StoreManage/PackList",
        name: "PackList",
        meta: {
            title: "打包列表",
        },
        component: () => import("../views/StoreManage/PackList.vue"),
    },
    {
        path: "/StoreManage/SeatCount",
        name: "SeatCount",
        meta: {
            title: "放货记录",
        },
        component: () => import("../views/StoreManage/SeatCount.vue"),
    },
    {
        path: "/StoreManage/SeatList",
        name: "SeatList",
        meta: {
            title: "放货列表",
        },
        component: () => import("../views/StoreManage/SeatList.vue"),
    },
    {
        path: "/StoreManage/StaffManage",
        name: "StaffManage",
        meta: {
            title: "员工管理",
        },
        component: () => import("../views/StoreManage/StaffManage.vue"),
    },
    {
        path: "/Page403",
        name: "Page403",
        meta: {
            title: "页面403",
        },
        component: () => import("../views/Page403.vue"),
    },
    {
        path: "/Demand",
        name: "Demand",
        meta: {
            title: "我有需求",
        },
        component: () => import("../views/Demand.vue"),
    },
    {
        path: "/:pathMatch(.*)*", // 代替vue2的通配符path: "*",
        name: "Page404",
        meta: {
            title: "页面404",
        },
        component: () => import("../views/Page404.vue"),
    },
]

const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

// 路由拦截
router.beforeEach((to, from, next) => {
    if (to.meta.title) {
        document.title = to.meta.title + "_花数云"
    }
    next()
})

export default router
